/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * NewJPanel.java
 *
 * Created on 21/03/2010, 10:34:41
 */
package br.unb.graphics.start;

import br.unb.graphics.GraphicInterface;
import javax.swing.JScrollPane;

/**
 *
 * @author USUARIO
 */
public class Startaba extends javax.swing.JPanel {

    private JScrollPane scrollpanel;

    /** Creates new form NewJPanel */
    public Startaba() {
        initComponents();
        scrollpanel = new JScrollPane(this);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        Sincronizar_button = new javax.swing.JButton();
        Add_newTraffic = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jComboBox1 = new javax.swing.JComboBox();

        jLabel1.setText("Primeiro passo, clique em sincronizar");

        jLabel2.setText("segundo passo, clique em add new traffic");

        Sincronizar_button.setText("Sincronizar");
        Sincronizar_button.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Sincronizar_buttonActionPerformed(evt);
            }
        });

        Add_newTraffic.setText("Add");

        Add_newTraffic.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Add_newTrafficActionPerformed(evt);
            }
        });

        jLabel3.setText("Terceiro passo, clique no gr�fico da tabela e quile em play");

        jLabel4.setText("Pronto, seu tr�fego foi gerado");

        jLabel5.setText("Se deseja gerar um tr�fego...");

        jLabel6.setText("Se deseja analisar um tr�fego");

        jLabel7.setText("Primeiro passo, abra um tr�fego no formato tra, ou graphics");

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[]{"Item 1", "Item 2", "Item 3", "Item 4"}));
        jComboBox1.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBox1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addGap(206, 206, 206).addComponent(jLabel5).addContainerGap(252, Short.MAX_VALUE)).addGroup(layout.createSequentialGroup().addGap(193, 193, 193).addComponent(jLabel6).addContainerGap(265, Short.MAX_VALUE)).addGroup(layout.createSequentialGroup().addGap(46, 46, 46).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addComponent(jLabel8).addContainerGap()).addGroup(layout.createSequentialGroup().addComponent(jLabel4).addContainerGap()).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addComponent(jLabel3).addContainerGap()).addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 293, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE).addComponent(Sincronizar_button)).addGroup(layout.createSequentialGroup().addComponent(jLabel2).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 156, Short.MAX_VALUE).addComponent(Add_newTraffic)).addGroup(layout.createSequentialGroup().addComponent(jLabel7).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 43, Short.MAX_VALUE).addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addGap(18, 18, 18))).addGap(64, 64, 64))))));
        layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addComponent(jLabel5).addGap(12, 12, 12).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel1).addComponent(Sincronizar_button)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addComponent(jLabel2).addComponent(Add_newTraffic)).addGap(18, 18, 18).addComponent(jLabel3).addGap(18, 18, 18).addComponent(jLabel4).addGap(31, 31, 31).addComponent(jLabel6).addGap(27, 27, 27).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel7).addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(jLabel8).addContainerGap(44, Short.MAX_VALUE)));
    }// </editor-fold>

    private void Sincronizar_buttonActionPerformed(java.awt.event.ActionEvent evt) {
        GraphicInterface.getInstance().showSyncPanel();
    }

    private void Add_newTrafficActionPerformed(java.awt.event.ActionEvent evt) {
        GraphicInterface.getInstance().showNewTrafficPanel();
    }

    private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }

    public JScrollPane getPanel() {
        return scrollpanel;
    }
    // Variables declaration - do not modify
    private javax.swing.JButton Add_newTraffic;
    private javax.swing.JButton Sincronizar_button;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    // End of variables declaration
}
